package com.iplatform.module.privilege.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel()
public class PriMenuDto implements Serializable {
    @ApiModelProperty(value = "menuId")
    private String menuId;

    @ApiModelProperty(value = "菜单链接")
    private String menuUrl;

    @ApiModelProperty(value = "菜单名")
    @NotBlank(message = "菜单名不能为空")
    private String menuName;

    @ApiModelProperty(value = "菜单icon")
    private String menuIcon;

    @ApiModelProperty(value = "父节点id")
    private String parentId;

    @ApiModelProperty(value = "排序码")
    private Integer sortNum;

    @ApiModelProperty(value = "菜单编码")
    private String menuCode;

    @ApiModelProperty(value = "访问类型 1.内嵌页面 2.新页面 3.外部链接")
    @NotNull(message = "访问类型不能为空")
    private Short openType;

    @ApiModelProperty(value = "是否显示")
    @NotNull(message = "是否显示不能为空")
    private Boolean isShow;

    @ApiModelProperty(value = "是否启用")
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;
}
